/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlPrOfferEx.java
 *
 * Created on 28 ม.ค. 2553, 15:42:40
 */

package Inventory;

/**
 *
 * @author Administrator
 */
public class PnlPrOfferMa extends javax.swing.JPanel {

    /** Creates new form PnlPrOfferEx */
    public PnlPrOfferMa() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeadPrOffer = new javax.swing.JPanel();
        lblHeadProDes = new javax.swing.JLabel();
        btnPrOfferMaPrint = new javax.swing.JButton();
        btnPrOfferMaCancel = new javax.swing.JButton();
        btnPrOfferMaOk = new javax.swing.JButton();
        pnlPoOffer = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblPrOfferManager = new javax.swing.JTable();
        lblPrCodeName = new javax.swing.JLabel();
        lblPrCode = new javax.swing.JLabel();
        lblEmCodeName = new javax.swing.JLabel();
        lblEmCode = new javax.swing.JLabel();
        lblEmCodeName2 = new javax.swing.JLabel();
        lblPrCode1 = new javax.swing.JLabel();

        setFont(new java.awt.Font("Tahoma", 0, 12));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlHeadPrOffer.setBackground(new java.awt.Color(204, 255, 204));
        pnlHeadPrOffer.setMaximumSize(new java.awt.Dimension(700, 80));
        pnlHeadPrOffer.setMinimumSize(new java.awt.Dimension(700, 80));
        pnlHeadPrOffer.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadProDes.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblHeadProDes.setText("เสนอเซ็นต์ใบขอซื้อ");

        btnPrOfferMaPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnPrOfferMaPrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnPrOfferMaPrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnPrOfferMaPrint.setPreferredSize(new java.awt.Dimension(40, 40));

        btnPrOfferMaCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N
        btnPrOfferMaCancel.setMaximumSize(new java.awt.Dimension(40, 40));
        btnPrOfferMaCancel.setMinimumSize(new java.awt.Dimension(40, 40));
        btnPrOfferMaCancel.setPreferredSize(new java.awt.Dimension(40, 40));

        btnPrOfferMaOk.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/ok_30x30.gif"))); // NOI18N
        btnPrOfferMaOk.setMaximumSize(new java.awt.Dimension(40, 40));
        btnPrOfferMaOk.setMinimumSize(new java.awt.Dimension(40, 40));
        btnPrOfferMaOk.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlHeadPrOfferLayout = new javax.swing.GroupLayout(pnlHeadPrOffer);
        pnlHeadPrOffer.setLayout(pnlHeadPrOfferLayout);
        pnlHeadPrOfferLayout.setHorizontalGroup(
            pnlHeadPrOfferLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadPrOfferLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlHeadPrOfferLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblHeadProDes)
                    .addGroup(pnlHeadPrOfferLayout.createSequentialGroup()
                        .addComponent(btnPrOfferMaOk, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnPrOfferMaCancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnPrOfferMaPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(540, Short.MAX_VALUE))
        );
        pnlHeadPrOfferLayout.setVerticalGroup(
            pnlHeadPrOfferLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadPrOfferLayout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addComponent(lblHeadProDes)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlHeadPrOfferLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlHeadPrOfferLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(btnPrOfferMaOk, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE)
                        .addComponent(btnPrOfferMaCancel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(btnPrOfferMaPrint, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(425, 425, 425))
        );

        add(pnlHeadPrOffer, java.awt.BorderLayout.PAGE_START);

        tblPrOfferManager.setFont(new java.awt.Font("Tahoma", 0, 12));
        tblPrOfferManager.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null}
            },
            new String [] {
                "ประเภทสินค้า", "รหัสสินค้า", "รายการสินค้า", "ราคา/หน่วย", "หน่วย", "จำนวนสินค้า"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.Integer.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tblPrOfferManager);

        lblPrCodeName.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblPrCodeName.setText("รหัสใบขอซื้อ :");

        lblPrCode.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblEmCodeName.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEmCodeName.setText("รหัสพนักงาน :");

        lblEmCode.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblEmCodeName2.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEmCodeName2.setText("แผนก :");

        lblPrCode1.setFont(new java.awt.Font("Tahoma", 0, 12));

        javax.swing.GroupLayout pnlPoOfferLayout = new javax.swing.GroupLayout(pnlPoOffer);
        pnlPoOffer.setLayout(pnlPoOfferLayout);
        pnlPoOfferLayout.setHorizontalGroup(
            pnlPoOfferLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlPoOfferLayout.createSequentialGroup()
                .addGroup(pnlPoOfferLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlPoOfferLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlPoOfferLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlPoOfferLayout.createSequentialGroup()
                                .addComponent(lblEmCodeName2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(lblPrCode1, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(pnlPoOfferLayout.createSequentialGroup()
                                .addComponent(lblPrCodeName)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(lblPrCode, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(18, 18, 18)
                        .addComponent(lblEmCodeName)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(lblEmCode, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlPoOfferLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 680, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pnlPoOfferLayout.setVerticalGroup(
            pnlPoOfferLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlPoOfferLayout.createSequentialGroup()
                .addGroup(pnlPoOfferLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlPoOfferLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlPoOfferLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(lblEmCode, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lblEmCodeName, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(pnlPoOfferLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlPoOfferLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(lblPrCode, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lblPrCodeName))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlPoOfferLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(lblPrCode1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lblEmCodeName2))))
                .addGap(11, 11, 11)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(221, 221, 221))
        );

        add(pnlPoOffer, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnPrOfferMaCancel;
    private javax.swing.JButton btnPrOfferMaOk;
    private javax.swing.JButton btnPrOfferMaPrint;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblEmCode;
    private javax.swing.JLabel lblEmCodeName;
    private javax.swing.JLabel lblEmCodeName2;
    private javax.swing.JLabel lblHeadProDes;
    private javax.swing.JLabel lblPrCode;
    private javax.swing.JLabel lblPrCode1;
    private javax.swing.JLabel lblPrCodeName;
    private javax.swing.JPanel pnlHeadPrOffer;
    private javax.swing.JPanel pnlPoOffer;
    private javax.swing.JTable tblPrOfferManager;
    // End of variables declaration//GEN-END:variables

}
